import java.util.HashMap;

public class Java018 {
    public static void main(String[] args) {
        String[] G = new String[]{"a","b","c"};
        String[] Y = new String[]{"x","y","z"};
        HashMap<String,String> race=new HashMap<>();
        for(int k = 0;k< Y.length;k++) {
            for (int i = 0; i < Y.length; i++) {
                if(i!=k) {
                    for (int j = 0; j < Y.length; j++) {
                        if (i != j && k != j) {
                            if (i!=0&&j!=0&&j!=2){
                                System.out.println("a  PK  " + Y[i]);//i!=0
                                System.out.println("b  PK  " + Y[j]);//j!=0&&j!=2
                                System.out.println("c  PK  " + Y[k]);}
                            }
                        }
                    }
                }
            }
        }
    }